// Domien Nowicki
#include "QtRobotDieAnimation.h"

QtRobotDieAnimation::QtRobotDieAnimation(): robot(0)
{
}

QtRobotDieAnimation::QtRobotDieAnimation(const QtRobotDieAnimation& rhs): QtAnimationCommand(rhs), robot(rhs.robot)
{
}

QtRobotDieAnimation::~QtRobotDieAnimation()
{
}


void QtRobotDieAnimation::SetRobot(QtRobotSprite* receiver)
{
	robot = receiver;
}

void QtRobotDieAnimation::Execute()
{
	if (robot)
	{
		robot->Die();
	}
}

QtAnimationCommand* QtRobotDieAnimation::Clone() const
{
	return new QtRobotDieAnimation(*this);
}
